package com.awangyh.jdk8.file;

/**
 * Created by admin on 2017/4/12.
 */
public class NetValueItem {

    private String code;
    private String name;
    private String shortFilename;

    private int type;	// 抓取的网站(选项：0: 私募, 1: 好买, 2: 中投)
    private int source;	// 抓取信息的来源(选项：0: 爬虫, 1: 中台excel, 2: 人工汇报)

    public static final String[] TYPE_OPTION = new String[]{"私募", "好买", "中投"};
    public static final String[] SOURCE_OPTION = new String[]{"爬虫", "中台excel", "人工汇报"};

    public NetValueItem(){}

    public NetValueItem(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }
    public void setCode( String code ) {
        this.code=code;
    }
    public String getName() {
        return name;
    }
    public void setName( String name ) {
        this.name=name;
    }
    public String getShortFilename() {
        return shortFilename;
    }
    public void setShortFilename(String shortFilename) {
        this.shortFilename = shortFilename;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public int getSource() {
        return source;
    }
    public void setSource(int source) {
        this.source = source;
    }


    public String toJson(){
        return "{"+
                "code:\""+code+"\","+
                "name:\""+name+"\","+
                "type:\"" +type+"\"" +
                "source:"+source + "\"" +
                "shortFilename: "+shortFilename + "\"" +
                "}";
    }
}
